package com.example.demo.model.entity.achievement;

import com.example.demo.model.enums.ProjectStatusEnum;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class VerticalProject {

    private Long id;
    private String projectName;
    private String approvalNumber;
    private String projectCode;
    private String projectLevel;
    private Double totalFunding;
    private String approvalDepartment;
    private String projectType;
    private LocalDate startDate;
    private LocalDate endDate;
    private String paymentRecords; // JSON格式: [{"date":"2023-01-01","amount":50.00}]
    private String participants; // JSON格式: [{"userId":1,"name":"张三","role":"成员"}]
    private String principalInvestigator;
    private String financialAccount;
    private LocalDate completionTime;
    private String approvalDocument;
    private String completionCertificate;
    private String finalReport;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
    private ProjectStatusEnum status;
    private Long submitUserId;

    public VerticalProject() {
        this.createTime = LocalDateTime.now();
        this.updateTime = LocalDateTime.now();
    }
}